<!--
 * @Author: your name
 * @Date: 2022-04-28 17:36:52
 * @LastEditTime: 2022-04-28 17:56:47
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \算法测试\day0906\4.28.html
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        const a = function(str){
            let map = new Map();
            map.set("1","1");
            map.set("2","5");
            map.set("3","8");
            map.set("4","7");
            map.set("6","9");
            map.set("5","2");
            map.set("8","3");
            map.set("7","4");
            map.set("9","6");
            let n = str.length - 1;
            let flag = true;
            for (let j = n; j >= 0; j--) {
                if (map.get(str[j]) !== str[n - j]) {
                    flag = false;
                    break;
                }
            }
            flag ? console.log("YES") : console.log("NO");
        }
        a("69")
        // for (let i = 1; i < lines.length; i++) {
        //     let str = lines[i];
            
        // }
        console.log(typeof 3);
    </script>
</body>

</html>